package cn.jolyoulu.common.druid.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * @Author: JolyouLu
 * @Date: 2021/11/3 20:09
 * @Version 1.0
 * 自定义设置 druid连接池参数
 */
@Configuration
@ConfigurationProperties(value = "druid-module-config.data-source")
public class DruidDataSourceProperties {
    /**
     * 数据库驱动
     */
    private String driverClassName;
    /**
     * 数据库连接地址
     */
    private String jdbcUrl;
    /**
     * 用户名
     */
    private String username;
    /**
     * 密码
     */
    private String password;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getJdbcUrl() {
        return jdbcUrl;
    }

    public void setJdbcUrl(String jdbcUrl) {
        this.jdbcUrl = jdbcUrl;
    }

    public String getDriverClassName() {
        return driverClassName;
    }

    public void setDriverClassName(String driverClassName) {
        this.driverClassName = driverClassName;
    }
}
